<extend name="Index:index" />
    <block name="nav1">
        <ul class="breadcrumb">
            <li>
                <i class="icon-home home-icon"></i>
                <a href="#">Admin</a>
            </li>
            <li class="active">课程管理</li>
        </ul><!-- .breadcrumb -->
    </block>

    <block name="nav2">
        <h1>
        课程管理
            <small>
                <i class="icon-double-angle-right"></i>
                <{$action}>
            </small>
        </h1>
    </block>
	
    <block name="main">
        <div class="row">
            <div class="col-sm-6">
                <form action="<{:U('Course/add_class')}>" enctype="multipart/form-data" method="post">
					<input type="hidden" name="type" value="<{$_GET['type']}>"/>
					<input type="hidden" name="sign" value="<{$_GET['sign']}>"/>
					<input type="hidden" name="id" value="<{$info.id}>"/>
                    <div class="form-group">
                        <label for="">分类名称:</label>
                        <input type="text" class="form-control" name="name" <if condition="$_GET[type] eq 1">value="<{$info.name}>"</if>>
                    </div>
                    <div class="form-group">
                        <label for="">排序:</label>
                        <input type="text" class="form-control" name="paixu" <if condition="$_GET[type] eq 1">value="<{$info.paixu}>"</if>>
                    </div>
                    <if condition="$_GET[type] neq 1">
                    	<input type="submit" name="submit" class="btn btn-default bton" value="添加">
                    <else/>
                    	<input type="submit" name="submit" class="btn btn-default bton" value="修改">
                    </if>
                    
                    </table>
                </form>
            </div>
        </div>

    </block>
